Make important text props more resilient in ERC
authorF. Jason Park <jp@neverwas.me>
Fri, 8 Mar 2024 05:53:23 +0000 (21:53 -0800)
committerF. Jason Park <jp@neverwas.me>
Sun, 10 Mar 2024 13:11:29 +0000 (06:11 -0700)
commite2620fd73441af19d478f7a9262de8c08a47ee2f
tree7c989058271dda0ca874a42ab9495cf839dd41a7
parent7b4ca9e609e2eadc824313053e70d7272d360b9d
Make important text props more resilient in ERC

* lisp/erc/erc-button.el (erc-button-remove-old-buttons): Restore
original `mouse-face' values in areas marked as important after
clobbering.
* lisp/erc/erc.el (erc--reserve-important-text-props): New function.
(erc--restore-important-text-props): New function.
* test/lisp/erc/erc-tests.el (erc--restore-important-text-props): New
test.
(Bug#69597)
lisp/erc/erc-button.el
lisp/erc/erc.el
test/lisp/erc/erc-tests.el